﻿<UserControl x:Class="SilverTrace.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    xmlns:Controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data" 
    mc:Ignorable="d" d:DesignHeight="450" d:DesignWidth="780">

    <Grid x:Name="LayoutRoot">
        <Grid.RowDefinitions>
            <RowDefinition Height="30" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <StackPanel Orientation="Horizontal" Grid.Column="0" Grid.Row="0">
            <TextBlock Padding="7 7 0 7">New Connection:</TextBlock>
            <TextBox x:Name="NewConnectionNameTxt" Width="120" Margin="2 3 2 3" KeyDown="NewConnectionNameTxt_KeyDown" />
            <Button Content="Add" Click="AddButton_Click" Margin="3" Width="35" />
            <TextBlock Padding="7 7 0 7">Current Connection:</TextBlock>
            <ComboBox x:Name="ConnectionsList" SelectionChanged="ConnectionsList_SelectionChanged" Width="120" Margin="3" />
            <Button x:Name="PauseButton" Content="Pause" Margin="3" Width="50" Click="PauseButton_Click" />
            <Button x:Name="ClearButton" Content="Clear" Margin="3" Width="40" Click="ClearButton_Click" />
            <Button x:Name="DetouchButton" Content="Install on Desktop" Margin="3" Width="120" Click="DetouchButton_Click" />
            
        </StackPanel>
        <TextBox x:Name="Data" Grid.Column="0" Grid.Row="1" AcceptsReturn="True" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto"  />
    </Grid>
</UserControl>
